/* Copyright 2010 John L. Reilly

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */

package com.riq.entity;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Marker implements HasPrimaryKey<String>, Serializable {
	
	public String getPrimaryKey() {
		// TODO Auto-generated method stub
		return null;
	}
	
	private static final long serialVersionUID = 1L;

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	
    @Persistent
	private Long memberId;

    @Persistent
	private Long deptId;

	@Persistent
	private String latitude;
	
	@Persistent
	private String longitude; 
	
	@Persistent
	private String type;
	
	@Persistent
	private String title;
	
	@Persistent
	private String description;
	
	@Persistent
	private Long pubDate;

	public  Marker (Long memberId, Long deptId, String latitude, String longitude, String type, String title,
			        String description, long pubDate) {
		
	this.memberId = memberId;
	this.deptId = deptId;
	this.latitude = latitude;
	this.longitude = longitude;
	this.type = type;	
	this.title = title;
	this.description = description;
	this.pubDate = pubDate;
	 
	}
	
// GETS	

	public Long getid() {
		return id;
	}

	public Long getmemberId() {
		return memberId;
	}
	
	public Long getdeptId() {
		return deptId;
	}

	public String getlatitude() {
		return latitude;
	}

	public String getlongitude() {
		return longitude;
	}
	
	public String gettype() {
		return type;
	}
	
	public String gettitle() {
		return title;
	}
	
	public String getdescription() {
		return description;
	}
	
	public Long getpubDate() {
		return pubDate;
	}
	
// SETS	
	
	public void setdeptId(Long deptId) {
		this.deptId = deptId;
	}
	
	public void setmemberId(Long memberId) {
		this.memberId = memberId;
	}
	
	public void setlatitude(String latitude) {
		this.latitude = latitude;
	}
	
	public void setlongitude(String longitude) {
		this.longitude = longitude;
	}
	
	public void settype(String type) {
		this.type = type;
	}
	
	public void settitle(String title) {
		this.title = title;
	}
	
	public void setdescription(String description) {
		this.description = description;
	}
	
	public void setpubDate(Long pubDate) {
		this.pubDate = pubDate;
	}

}
	